/*
 * This file is part of Dorado 7.x (http://dorado7.bsdn.org).
 * 
 * Copyright (c) 2002-2012 BSTEK Corp. All rights reserved.
 * 
 * This file is dual-licensed under the AGPLv3 (http://www.gnu.org/licenses/agpl-3.0.html) 
 * and BSDN commercial (http://www.bsdn.org/licenses) licenses.
 * 
 * If you are unsure which license is appropriate for your use, please contact the sales department
 * at http://www.bstek.com/contact.
 */

/* label */
.d-label {
	height: 18px;
}

/* text-box */
.d-text-box {
	height: 18px;
	border: 1px #B0B0B0 solid;
	background: url(form/text-field-bg.gif) repeat-x white;
}

.d-text-box .editor {
	line-height: 18px;
}

.d-text-box .blank-text {
	
}

.d-text-box .d-trigger {
	width: 18px;
	height: 18px;
	background: url(form/dropdown-trigger-bg.gif) no-repeat;
}

.d-text-box .dirty-flag {
	right: -1px;
	top: 0;
	background: url(form/dirty-flag.gif);
}

.d-text-box-hover {
	border: 1px #707070 solid;
}

.d-text-box-hover .d-trigger {
	background-position: -18px 0;
}

.d-text-box-focused {
	border: 1px #6ECC81 solid;
	background: url(form/text-field-bg-focus.gif) repeat-x white;
}

.d-text-box-focused .d-trigger {
	background-position: -36px 0;
}

.d-text-box-focused .d-trigger-down {
	background-position: -54px 0;
}

.d-text-box-warn {
	border: 1px #DDB147 solid;
	background: url(form/text-field-bg-warn.gif) repeat-x bottom white;
}

.d-text-box-warn .d-trigger {
	background-position: -72px 0;
}

.d-text-box-warn .d-trigger-down {
	background-position: -90px 0;
}

.d-text-box-error {
	border: 1px #FC3737 solid;
	background: url(form/text-field-bg-error.gif) repeat-x bottom white;
}

.d-text-box-error .d-trigger {
	background-position: -108px 0;
}

.d-text-box-error .d-trigger-down {
	background-position: -126px 0;
}

.d-text-box-readonly {
	border: 1px #A1A1A1 solid;
	background: #F8F8F8;
}

.d-text-box-readonly .d-trigger {
	background-position: -144px 0;
}

/* text-area */
.d-text-area {
	height: 18px;
	border: 1px #B0B0B0 solid;
	background: url(form/text-field-bg.gif) repeat-x white;
}

.d-text-area .d-trigger-panel {
	background: url(form/text-area-trigger-panel.gif) repeat-y;
	width: 23px;
}

.d-text-area .d-trigger {
	left: 2px;
	margin-bottom: 1px;
}

.d-text-area .blank-text {
	font-style: italic;
	color: #B2B2B2;
}

.d-text-area .dirty-flag {
	right: -1px;
	top: 0;
	background: url(form/dirty-flag.gif);
}

.d-text-area-focused {
	border: 1px #6ECC81 solid;
	background: white url(form/text-field-bg-focus.gif) repeat-x white;
}

.d-text-area-warn {
	border: 1px #FFCC66 solid;
	background: white url(form/text-field-bg-warn.gif) repeat-x bottom white;
}

.d-text-area-error {
	border: 1px #FC3737 solid;
	background: url(form/text-field-bg-error.gif) repeat-x bottom white;
}

.d-text-area-readonly {
	border: 1px #A1A1A1 solid;
	background: #F8F8F8;
}

/* trigger */
.d-trigger-icon-drop {
	background: url(form/dropdown-trigger.gif) no-repeat;
}

.d-trigger-icon-search {
	background: url(form/dropdown-trigger.gif) no-repeat -18px 0;
}

.d-trigger-icon-date {
	background: url(form/dropdown-trigger.gif) no-repeat -36px 0;
}

.d-trigger-icon-custom {
	background: url(form/dropdown-trigger.gif) no-repeat -54px 0;
}

.d-trigger-icon-clear {
	background: url(form/dropdown-trigger.gif) no-repeat -74px 0;
}

.d-trigger-icon-filter {
	background: url(form/dropdown-trigger.gif) no-repeat -90px 0;
}

.d-trigger-icon-reset {
	background: url(form/dropdown-trigger.gif) no-repeat -108px 0;
}

.d-text-box .d-trigger-clear {
	width: 15px;
}

/* checkbox */
.d-chckbox {
    height: 20px;
}

.d-checkbox-dirty {
	background: url(form/dirty-flag-left.gif) no-repeat left 3px;
}

.d-checkbox .icon {
    width: 16px;
    height: 16px;
	background: url(form/checkbox-radiobox.gif);
}

.d-checkbox .caption {
    line-height: 20px;
}

.d-checkbox .halfchecked {
	background-position: 0 0px;
}

.d-checkbox-focused .halfchecked,.d-checkbox-hover .halfchecked {
	background-position: -16px 0px;
}

.d-checkbox .unchecked {
	background-position: -32px 0px;
}

.d-checkbox-focused .unchecked,.d-checkbox-hover .unchecked {
	background-position: -48px 0px;
}

.d-checkbox .checked {
	background-position: -64px 0px;
}

.d-checkbox-focused .checked,.d-checkbox-hover .checked {
	background-position: -80px 0px;
}

.d-checkbox-center {
	float: none;
	position: relative;
	left: 50%;
	margin-left: -10px;
	padding: 0;
}

.d-checkbox-icononly {
    width: 16px;
	background: url(form/checkbox-radiobox.gif);
}

/* radio-group */
.d-radio{
	height: 20px;
}

.d-radio .icon {
	width: 16px;
	height: 20px;
	background: url(form/checkbox-radiobox.gif) 0 -20px;
}

.d-radio .text{
	line-height: 20px;
}

.d-radio .unchecked {
	background-position: 0px -20px;
}

.d-radio-hover .unchecked {
	background-position: -16px -20px;
}

.d-radio .checked {
	background-position: -32px -20px;
}

.d-radio-hover .checked {
	background-position: -48px -20px;
}

.d-radiogroup-dirty {
	background: url(form/dirty-flag-left.gif) no-repeat left 2px;
}

/* spinner */
.d-text-box .d-spinner-trigger {
	width: 18px;
	height: 18px;
	background: url(base/spinner-button.gif);
}

.d-text-box .d-spinner-trigger .up-button,.d-text-box .d-spinner-trigger .down-button
	{
	width: 18px;
	height: 9px;
	font-size: 1%;
	cursor: pointer;
}

.d-text-box-hover .d-spinner-trigger {
	background-position: -18px 0;
}

.d-text-box-focused .d-spinner-trigger {
	background-position: -36px 0;
}

.d-text-box-focused .d-spinner-trigger-down {
	background-position: -54px 0;
}

.d-text-box-focused .d-spinner-trigger .up-button-click {
	background: url(base/spinner-button.gif) transparent -54px 0;
}

.d-text-box-focused .d-spinner-trigger .down-button-click {
	background: url(base/spinner-button.gif) transparent -54px -9px;
}

.d-text-box-invalid .d-spinner-trigger {
	background-position: -72px 0;
}

.d-text-box-invalid .d-spinner-trigger-down {
	background-position: -90px 0;
}

.d-text-box-readonly .d-spinner-trigger {
	background-position: -108px 0;
}

/* data-message */
.d-data-message .d-message {
	height: 20px;
	line-height: 20px;
	padding-left: 20px;
}

.d-data-message .d-message-info {
	background: url(form/message-info.gif) no-repeat;
}

.d-data-message .d-message-ok {
	background: url(form/message-ok.gif) no-repeat;
}

.d-data-message .d-message-warn {
	background: url(form/message-warn.gif) no-repeat;
}

.d-data-message .d-message-error {
	color: #FF0000;
	background: url(form/message-error.gif) no-repeat;
}

.d-data-message .d-message-validating {
	background: url(form/validating.gif) no-repeat;
}

/* form-element */
.d-form-element .form-label {
	height: 20px;
	line-height: 20px;
	padding-right: 12px;
}

.d-form-element .form-label-required {
	background: url(form/field-required.gif) right 2px no-repeat;
}